home *** CD-ROM | disk | FTP | other *** search
- PXFGETGRNAM(3F) Last changed: 1-6-98
-
-
- NNAAMMEE
- PPXXFFGGEETTGGRRNNAAMM - Gets group information using the group name
-
- SSYYNNOOPPSSIISS
- SSUUBBRROOUUTTIINNEE PPXXFFGGEETTGGRRNNAAMM ((_n_a_m_e,, _i_l_e_n,, _j_g_r_o_u_p,, _i_e_r_r_o_r))
- CCHHAARRAACCTTEERR*_n _n_a_m_e
- IINNTTEEGGEERR _i_l_e_n,, _j_g_r_o_u_p,, _i_e_r_r_o_r
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- IEEE standard interface for FORTRAN 77
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- 7.2 F77 compiler.
-
- The PPXXFFGGEETTGGRRNNAAMM routine uses the ggeettggrrnnaamm(3C) function to obtain group
- information using a group name.
-
- The following are components of the group structure used by
- PPXXFFGGEETTGGRRNNAAMM and created by calling PPXXFFSSTTRRUUCCTTCCRREEAATTEE:
-
- * ggrr__nnaammee: Group name
-
- * ggrr__ggiidd: Group ID
-
- * ggrr__nnmmeemm: Number of group members contained in ggrr__mmeemm
-
- * ggrr__mmeemm: Array of group members' login names
-
- The ggrr__nnaammee component can be accessed by calling PPXXFFSSTTRRGGEETT(3F).
- ggrr__ggiidd and ggrr__nnmmeemm can be accessed by calling PPXXFFIINNTTGGEETT(3F).
- PPXXFFEESSTTRRGGEETT can be used to access the elements of ggrr__mmeemm.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX, the default kind is KKIINNDD==44.
-
- The following is a list of valid arguments for this routine:
-
- _n_a_m_e An input character character variable or array element
- containing the group name for which group information is
- requested.
-
- _i_l_e_n An input integer variable containing the length of _n_a_m_e. If
- _i_l_e_n is zero, trailing blanks are stripped.
-
- _j_g_r_o_u_p An output handle of type ggrroouupp created with
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F).
-
- _i_e_r_r_o_r An output integer variable that contains zero if group
- information was retrieved or nonzero if PPXXFFGGEETTGGRRNNAAMM was not
- successful.
-
- The PPXXFFGGEETTGGRRNNAAMM routine may also return any of the following error
- values:
-
- EENNOOEENNTT If _n_a_m_e contains a non-existant group ID.
-
- EENNOOMMEEMM If memory needed by PPXXFFGGEETTGGRRNNAAMM could not be allocated.
-
- EEIINNVVAALL If _i_l_e_n < 0 or _i_l_e_n > LLEENN((_n_a_m_e))..
-
- EEBBAADDHHAANNDDLLEE
- If _j_g_r_o_u_p is an invalid handle or has an incorrect handle
- type (UNICOS and UNICOS/mk systems only).
-
- EEXXAAMMPPLLEESS
- In this example, PPXXFFGGEETTGGRRNNAAMM is called for information about the group
- uusseerrss.
-
- program pxftest
- integer jgroup
- integer ierror, igid
-
- CALL PXFGETGRNAM('users',0,jgroup,ierror)
- CALL PXFINTGET(jgroup,'gr_gid',igid,ierror)
- print *,'group ID for group users is ',igid
-
- end
-
- SSEEEE AALLSSOO
- PPXXFFIINNTTGGEETT(3F), PPXXFFSSTTRRGGEETT(3F)
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
- 2165, for the printed version of this man page.
-
-